// 
//  Card.m
//  Test_CD_SL_2
//
//  Created by Timothy Costa on 9/18/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "Card.h"

@implementation Card

@dynamic side1;
@dynamic hint;
@dynamic side2;
@dynamic results;
@dynamic decks;


- (void)awakeFromInsert
{
	static int count = 1;
	self.side1 = [NSString stringWithFormat: @"New Card %i", count++];
	self.side2 = @"Side 2";
	self.hint  = @"Hint";
	self.results = 	 [NSEntityDescription
					  insertNewObjectForEntityForName:@"Results"
					  inManagedObjectContext:self.managedObjectContext];
}
@end
